package cn.bluedot.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.bluedot.model.StorageRecord;
import cn.bluedot.model.StorageRecordExample;

public interface StorageRecordMapper {
    long countByExample(StorageRecordExample example);

    int deleteByExample(StorageRecordExample example);

    int deleteByPrimaryKey(Long id);

    int insert(StorageRecord record);

    int insertSelective(StorageRecord record);

    List<StorageRecord> selectByExample(StorageRecordExample example);
    
    List<StorageRecord> selectList(@Param("start") int start,@Param("offset") int offset);

    StorageRecord selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") StorageRecord record, @Param("example") StorageRecordExample example);

    int updateByExample(@Param("record") StorageRecord record, @Param("example") StorageRecordExample example);

    int updateByPrimaryKeySelective(StorageRecord record);

    int updateByPrimaryKey(StorageRecord record);
}